import Vue from "vue";
import VueI18n from "vue-i18n";
import zh from "./zh";
import en from "./en";
import id from "./id";
import ms from "./ms";

Vue.use(VueI18n);

const i18n = new VueI18n({
  locale: localStorage.getItem("language") || "en", // 默认语言
  messages: {
    zh,
    en,
    id,
    ms,
  },
});

export default i18n;
